home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / bluej / bluejsetup-203.exe / {app} / lib / spanish / templates / newclass / stdclass.tmpl < prev    next >
Text File  |  2004-12-19  |  616b  |  34 lines

  1. $PKGLINE
  2. /**
  3.  * Write a description of class $CLASSNAME here.
  4.  * 
  5.  * @author (your name) 
  6.  * @version (a version number or a date)
  7.  */
  8. public class $CLASSNAME
  9. {
  10.     // instance variables - replace the example below with your own
  11.     private int x;
  12.  
  13.     /**
  14.      * Constructor for objects of class $CLASSNAME
  15.      */
  16.     public $CLASSNAME()
  17.     {
  18.         // initialise instance variables
  19.         x = 0;
  20.     }
  21.  
  22.     /**
  23.      * An example of a method - replace this comment with your own
  24.      * 
  25.      * @param  y   a sample parameter for a method
  26.      * @return     the sum of x and y 
  27.      */
  28.     public int sampleMethod(int y)
  29.     {
  30.         // put your code here
  31.         return x + y;
  32.     }
  33. }
  34.